package com.weizhi.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class CourseDto {
    private Long id;

    private String name;

    private String summary;

    private Integer time;

    private BigDecimal price;

    private String image;

    private Integer level;

    private Integer charge;

    private Integer status;

    private Integer enroll;

    private Integer sort;

    private List<CategoryDto> categoryDtoList;

    private List<Long> categoryIdList;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateDate;

    private Long teacherId;

}
